<template>
  <div class="my-table">
    <el-table :data="tableData">
      <el-table-column prop="time" label="时间"></el-table-column>
      <el-table-column label="题目总数">
        <template slot-scope="scope">
          {{ scope.row.exams.length }}
        </template>
      </el-table-column>
      <el-table-column prop="score" label="分数"></el-table-column>
    </el-table>
  </div>
</template>

<script>
  export default {
    props: {
      tableData: {
        type: Array,
        default: []
      }
    }
  }
</script>

<style>
  .my-table {
    margin-top: 40px;
  }
</style>
